package com.antu.first.bean;

import java.util.Date;

/**
 * Created by Administrator on 2018/3/3.
 */
public class DiscountCoupon {

    private int dId;//Id

    private String dName;//优惠券名称

    private String dDesc;//优惠券描述

    private Date dStart;//优惠券开始时间

    private Date dStop;//优惠券结束时间

    private Date dCreateTime;//优惠券创建时间

    private double dMinConsum;//最低消费

    private double dValue;//优惠券面值

    private Hotel hotel;//酒店Id

    private User user;//用户Id

    private int dCount;//优惠券总量

    private int dStatus;//优惠券状态

    private int dCanModify;//优惠券是否可修改

    private Merchant dCreator;//优惠券创造者

    public DiscountCoupon() {
    }

    public DiscountCoupon(int dId, String dName, String dDesc, Date dStart, Date dStop, Date dCreateTime, double dMinConsum, double dValue, Hotel hotel, User user, int dCount, int dStatus, int dCanModify, Merchant dCreator) {

        this.dId = dId;
        this.dName = dName;
        this.dDesc = dDesc;
        this.dStart = dStart;
        this.dStop = dStop;
        this.dCreateTime = dCreateTime;
        this.dMinConsum = dMinConsum;
        this.dValue = dValue;
        this.hotel = hotel;
        this.user = user;
        this.dCount = dCount;
        this.dStatus = dStatus;
        this.dCanModify = dCanModify;
        this.dCreator = dCreator;
    }

    public int getdId() {

        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public String getdDesc() {
        return dDesc;
    }

    public void setdDesc(String dDesc) {
        this.dDesc = dDesc;
    }

    public Date getdStart() {
        return dStart;
    }

    public void setdStart(Date dStart) {
        this.dStart = dStart;
    }

    public Date getdStop() {
        return dStop;
    }

    public void setdStop(Date dStop) {
        this.dStop = dStop;
    }

    public Date getdCreateTime() {
        return dCreateTime;
    }

    public void setdCreateTime(Date dCreateTime) {
        this.dCreateTime = dCreateTime;
    }

    public double getdMinConsum() {
        return dMinConsum;
    }

    public void setdMinConsum(double dMinConsum) {
        this.dMinConsum = dMinConsum;
    }

    public double getdValue() {
        return dValue;
    }

    public void setdValue(double dValue) {
        this.dValue = dValue;
    }

    public Hotel getHotel() {
        return hotel;
    }

    public void setHotel(Hotel hotel) {
        this.hotel = hotel;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getdCount() {
        return dCount;
    }

    public void setdCount(int dCount) {
        this.dCount = dCount;
    }

    public int getdStatus() {
        return dStatus;
    }

    public void setdStatus(int dStatus) {
        this.dStatus = dStatus;
    }

    public int getdCanModify() {
        return dCanModify;
    }

    public void setdCanModify(int dCanModify) {
        this.dCanModify = dCanModify;
    }

    public Merchant getdCreator() {
        return dCreator;
    }

    public void setdCreator(Merchant dCreator) {
        this.dCreator = dCreator;
    }

    @Override
    public String toString() {
        return "DiscountCoupon{" +
                "dId=" + dId +
                ", dName='" + dName + '\'' +
                ", dDesc='" + dDesc + '\'' +
                ", dStart=" + dStart +
                ", dStop=" + dStop +
                ", dCreateTime=" + dCreateTime +
                ", dMinConsum=" + dMinConsum +
                ", dValue=" + dValue +
                ", hotel=" + hotel +
                ", user=" + user +
                ", dCount=" + dCount +
                ", dStatus=" + dStatus +
                ", dCanModify=" + dCanModify +
                ", dCreator=" + dCreator +
                '}';
    }
}
